package oop12;

import java.io.IOException;
import java.sql.SQLException;

/**
 * @author oldliu
 * @since 1.0
 */
public class B extends A {
    final public static double PI=3;

    public B(){
        super(100);
    }
    @Override
    public void c()   {
        System.out.println("B的方法c");
    }

    //    @Override errolr
//    public void f()throws Exception {
//
//    }

    @Override
    public void aaa() {

    }

    public static void main(String[] args) {
        A a=new B();
        try {
            a.c();
        } catch (IOException e) {
            e.printStackTrace();
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }
}
